<template>
  <div>
    <el-tabs v-model="activeName" type="border-card" class="demo-tabs">
      <el-tab-pane label="样式设置" name="first">
        <CommonTitleOptions
          colorLabel="姓名字体颜色"
          fontSizeLabel="姓名字体大小"
          fontWeightLabel="姓名字体粗细"
        ></CommonTitleOptions>
        <!-- 公共部分 -->
        <Common></Common>
      </el-tab-pane>
      <!-- 数据配置 -->
      <el-tab-pane label="数据配置" name="second">
        <el-form label-width="70px" label-position="left">
          <el-form-item label="姓名:">
            <el-input
              v-model="modelItem.data.name"
              type="text"
              maxlength="15"
              show-word-limit
            />
          </el-form-item>
          <el-form-item label="简介:">
            <el-input
              v-model="modelItem.data.abstract"
              type="textarea"
              maxlength="50"
              show-word-limit
              :rows="4"
            />
            <el-switch v-model="modelItem.data.isShow.abstract" />
          </el-form-item>
        </el-form>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import CommonTitleOptions from '@/options/CommonTitleOptions.vue'
import Common from '@/options/Common.vue'
import selectModelItem from '@/hooks/selectModel.ts' //当前选中模块
const modelItem = selectModelItem()
const activeName = ref('first')
</script>
<style lang="scss" scoped>
:deep(.el-input) {
  width: 80%;
  height: 27px;
  line-height: 27px;
  margin-right: 2px;
}

:deep(.el-form-item__label) {
  font-size: 13px;
}

:deep(.el-tabs--border-card) {
  border: 0;
}
</style>
